<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>商品评论</title>
</head>
<script type="text/javascript" src="../js/jquery-1.11.0.min.js"></script>
<script src="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>
<link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/css/bootstrap.min.css">
<script type="text/javascript" src="../js/fenye.js"></script>
<script type="text/javascript" src="../js/goods.js"></script>
<script type="text/javascript">
     $(function () {
         findAllGoodsAndComments()
     })
</script>
<body>
<table class="table table-condensed" data-toggle="table" data-toolbar="#toolbar" data-height="400" data-search="true" >
    <thead >
    <tr>
        <h3>商品列表</h3>
    </tr>
    <tr>
        <th data-field="id">商品名</th>
        <th data-field="name">价格</th>
        <th data-field="price">描述</th>
        <th data-field="price1">剩余数量</th>
        <th data-field="price2">商品评星</th>
        <th data-field="price3">操作</th>
    </tr>
    </thead>
    <tbody id="tbody" ></tbody>
</table>
<!-- 模态框（Modal） -->
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">
                    &times;
                </button>
                <h4 class="modal-title" id="myModalLabel">
                    评论
                </h4>
            </div>
            <form id="bottom-more-info-link" enctype="multipart/form-data" method="post" accept-charset="utf-8">
                <div class="modal-body">
                </div>

            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">关闭
                </button>
                <button type="submit" class="btn btn-default" >导出
                </button>
            </div>
            </form>

        </div><!-- /.modal-content -->
    </div><!-- /.modal -->
</div>
<!-- 模态框（Modal） -->
<div class="modal fade" id="myModal1" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">
                    &times;
                </button>
                <h4 class="modal-title" id="myModalLabel1">
                   添加评论
                </h4>
            </div>
            <form id="comments">
                <div class="modal-body">
                    <tr>
                        <th data-field="id">商品名:</th>
                        <th data-field="id"><input  name="goodId" id="goodId" value=""></th>
                    </tr>
                </div>
                <div class="modal-body">
                    <tr>
                        <th data-field="id">评论星级</th>
                        <th data-field="id"><select name="star" id="user-name-label">
                            <option value="1">1</option>
                            <option value="2">2</option>
                            <option value="3">3</option>
                            <option value="4">4</option>
                            <option value="5">5</option>
                        </select></th>
                    </tr>
                </div>
                <div class="modal-body">
                    <tr>
                        <th data-field="id">输入评论</th>
                        <th data-field="id"><input id="comment" name="comment" value=""> </th>
                    </tr>
                </div>
            </form>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                <button type="button" class="btn btn-default" onclick="addComments()" data-dismiss="modal">添加评论</button>

            </div>
        </div><!-- /.modal-content -->
    </div><!-- /.modal -->
</div>



</body>
</html>